package org.hepeng.app;

import lombok.extern.slf4j.Slf4j;
import org.hepeng.fabric.gateway.event.CCEventListener;
import org.hyperledger.fabric.client.ChaincodeEvent;
import org.springframework.stereotype.Component;

/**
 * @author he peng
 * @date 2022/3/30
 */

@Component
@Slf4j
public class EventListener {

    @CCEventListener(chaincode = "chaincode-java" , channel = "businesschannel" , events = {"regUserEvent"})
    public void regUserListener(ChaincodeEvent event) {
        log.info("fabric chaincode event {} " , event);
    }
}
